package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.entity.QueryData;
import com.itheima.pojo.Member;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface MemberDao {
    public List<Member> findAll();
    public Page<Member> selectByCondition(QueryData queryData);
    public void add(Member member);
    public void deleteById(Integer id);
    public Member findById(Integer id);
    public Member findByTelephone(String telephone);
    public void edit(Member member);

    Map<String,Integer> findOrderCountByDate(@Param("today") String today,@Param("thisWeekMonday") String thisWeekMonday, @Param("firstDay4ThisMonth") String firstDay4ThisMonth);
    public Integer findMemberCountBeforeDate(String date);

    void deletes(String id);

    void deletesMid(String id);

    int findMemberHealthManager(int h_id);

//    void editMemberHealthManager(@Param("memberId") int memberId, @Param("h_id") int h_id);

    void insertMemberHealthManager(@Param("memberId") int memberId, @Param("h_id") int h_id);

    int findIdByName(String h_name);

    void deleteMemberHealthManagerById(int memberId);

    int findMidByMemberId(String str);

//    public Integer findMemberCountByDate(String date);
//    public Integer findMemberCountAfterDate(String date);
//    public Integer findMemberTotalCount();
    
}
